﻿using Castle.MicroKernel.SubSystems.Conversion;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Query.SportBusiness.RegistrationInfo
{
    /// <summary>
    /// 添加报名请求
    /// </summary>
    public class AddRegistrationInfoQuery
    {
        /// <summary>
        /// 赛事表Id
        /// </summary>
        public Guid CompetitionId { get; set; }

        /// <summary>
        /// 赛事项目表Id
        /// </summary>
        public Guid CompetitionProjectId { get; set; }

        /// <summary>
        /// 报名来源（1：小程序；2：H5；3：线下报名）
        /// </summary>
        public int RegistrationSource { get; set; }

        /// <summary>
        /// 请求来源  （0:报名管理请求  1：分组添加报名请求）
        /// </summary>
        public int RequestSource { get; set; }

        /// <summary>
        /// 参赛用户列表
        /// </summary>
        public List<EmployeeInfoDto> EmployeeInfos { get; set; }
    }

    /// <summary>
    /// 参赛用户信息dto
    /// </summary>
    public class EmployeeInfoDto
    {
        /// <summary>
        /// 参赛人姓名
        /// </summary>
        public string CompeteName { get; set; }

        /// <summary>
        /// 参赛人联系电话
        /// </summary>
        public string CompeteTel { get; set; }

        /// <summary>
        /// 参赛人身份证号码
        /// </summary>
        public string CompeteIdNo { get; set; }

        /// <summary>
        /// 感应器号码
        /// </summary>
        public string SensorNumber { get; set; }

        /// <summary>
        /// 参赛队名
        /// </summary>
        public string CompeteTeamName { get; set; }

        /// <summary>
        /// openId
        /// </summary>
        public string OpenId { get; set; }
    }
}
